This procedure describes how to modify a Word report layout on report from the Microsoft Dynamics NAV Development Environment. A Word report layout determines the content and format of a report when it is viewed and printed from the Microsoft Dynamics NAV client. When you modify a Word report layout, you specify the fields of the report dataset to include on report and how the fields are arranged. You also define the general format of the report, such as text font and size, margins, and background images. You will typically arrange the content of the report by adding tables to the layout.
You insert dataset fields in the layout by using a custom XML part that is automatically generated for the report when you create the Word report layout. For more information about custom XML parts, see Custom XML Part Overview for Word Report Layouts.
To modify the Word report layout
In the development environment, export the Word report layout as a Word document file to your computer or network.
For more information see To export a Word report layout document from a report to a file.
Open the Word document file in Word 2013 and make changes.
-
To make basic layout changes, such as adding or removing tables and cells, formatting text, or changing margins, use the editing features of Word.
-
To add fields from the report dataset to the layout, use the custom XML part for the report to add content controls that map to the fields. For more information, see How to: Add Fields from a Report Dataset to a Word Report Layout.
Tip Show the table gridlines so that you see the boundaries of table cells. Remember to hide the gridlines when you have finished editing. To show or hide table gridlines, select the table, and then under Layout on the Table tab, choose View Gridlines. -
To make basic layout changes, such as adding or removing tables and cells, formatting text, or changing margins, use the editing features of Word.
Save your changes, and then close the Word report layout document.
Import the Word document into the report.
For more information, see To import a Word report layout document from a file into report.
Removing Label and Data Fields
Label and data fields of a report are contained in content controls in Word. The following figure illustrates a content control when it is selected in the Word document.
The name of the label or data field name displays in the content control. In the example, the field name is CompanyAddr1.
To remove a label or data field
Right-click the field that you want to delete, and then choose Remove Content Control.
The content control is removed, but the field name remains as text.
Delete the remaining text as needed.